#include <stdio.h>
#include <stdlib.h>

#ifndef SNAKE_H
#define SNAKE_H

#ifdef __LINUX__
#include <ncurses.h>
#elif defined(_WIN32)
#include <windows.h>
#include <conio.h>
#endif

typedef struct __game__
{
    // global variables
    int **board;
    int width, height;
    int delay;

    // snake variables
    int score;
    int direction;
    int food_x, food_y;
} Game;

extern Game *game;
int load_game(Game *game);
void init_game(Game *game);

#endif
